<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\request;
use think\Session;
use think\Cookie;
class Base extends Controller{
    public function __construct(){

            if(!empty($_GET['refereecode'])){
                $photo = Db::name('agents')->where('id',$_GET['refereecode'])->find();
                if($photo&&$photo['logo']!=null){
                    Cookie::set('a_logo',['logo'=>$photo['logo'],'refereecode'=>$_GET['refereecode']]);
                }

            }


    }
}